//
//  BrokerCommissionCell.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/6/10.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "BrokerCommissionCell.h"
#import "CommissionData.h"


@interface BrokerCommissionCell ()

@property (weak, nonatomic) IBOutlet UILabel *orderCode;

@property (weak, nonatomic) IBOutlet UILabel *orderState;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *address;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *rate;
@property (weak, nonatomic) IBOutlet UILabel *except;
@property (weak, nonatomic) IBOutlet UILabel *actual;

@property (weak, nonatomic) IBOutlet UILabel *price;
@end

@implementation BrokerCommissionCell




+(instancetype) cellWithTableView:(UITableView *)tableview{

    static NSString *ID = @"BrokerCommissionCell";
    BrokerCommissionCell *CELL = [tableview dequeueReusableCellWithIdentifier:ID];
    if (CELL == nil)
    {
        CELL = [[[NSBundle mainBundle]loadNibNamed:@"BrokerCommissionCell" owner:nil options:nil]lastObject];
        
        [CELL setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return CELL;
}


+(CGFloat)getHight:(CellBaseData*)data withTableView:(UITableView*)tableView{

    return 226-40;
}


-(void)setData:(CommissionData*)data{

    [self.orderState setText:data.orderState];
    [self.title setText:data.title];
    [self.address setText:data.address];
    [self.price setText:data.price];
    [self.time setText:data.time];
    [self.rate setText:data.commissionRate];
    [self.except setText:data.exceptCommission];
    [self.actual setText:data.actualCommission];
    [self.orderCode setText:data.orderCode];
}

@end
